package com.teemor.tim.bean.form.openim;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @ename zhoulk
 * @cname 周李科
 * @date 2020/12/14 13:52
 */
@NoArgsConstructor
@Data
public class ImportMsgForm implements Serializable {

    private static final long serialVersionUID = -7490484003929380716L;
    @JSONField(name = "SyncFromOldSystem")
    private Integer SyncFromOldSystem;
    @JSONField(name = "From_Account")
    private String FromAccount;
    @JSONField(name = "To_Account")
    private String ToAccount;
    @JSONField(name = "MsgRandom")
    private Integer MsgRandom;
    @JSONField(name = "MsgTimeStamp")
    private Integer MsgTimeStamp;
    @JSONField(name = "MsgBody")
    private List<ImportMsgForm.MsgBody> MsgBody;

    @NoArgsConstructor
    @Data
    public static class MsgBody {
        @JSONField(name = "MsgType")
        private String MsgType;
        @JSONField(name = "MsgContent")
        private ImportMsgForm.MsgBody.MsgContent MsgContent;

        @NoArgsConstructor
        @Data
        public static class MsgContent {
            @JSONField(name = "Text")
            private String Text;
        }
    }
}
